package com.sloth.bear.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sloth.bear.dto.entity.Moment;
import com.sloth.bear.dto.vo.MoodStatsVo;
import com.sloth.bear.dto.vo.TagStatsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * MomentMapper
 */
@Mapper
public interface MomentMapper extends BaseMapper<Moment> {

    /**
     * 获取心情统计
     */
    List<MoodStatsVo> getMoodStats(@Param("userId") Long userId);

    /**
     * 获取标签统计
     */
    List<TagStatsVo> getTagStats(@Param("userId") Long userId);

    /**
     * 获取热门标签
     */
    List<String> getPopularTags(@Param("userId") Long userId, @Param("limit") Integer limit);
}